package com.chris.libs.example.model;

import androidx.annotation.DrawableRes;

/**
 * @author Chris chan
 * Create on： 2025/2/2 2:30
 * Use for:
 * Explain:
 */
public class DataItem {
    private String title;
    private @DrawableRes
    int icon;


    public DataItem() {
    }

    public DataItem(String title, int icon) {
        this.title = title;
        this.icon = icon;
    }

    public static DataItem create(String title, int icon) {
        return new DataItem(title, icon);
    }

    public static DataItem of(String title, int icon) {
        return new DataItem(title, icon);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }
}
